package com.moyun.finance.repository;

import com.moyun.finance.entity.OrgRoleUserMid;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface OrgRoleUserMidRepository extends JpaRepository<OrgRoleUserMid,String>, JpaSpecificationExecutor<OrgRoleUserMid> {
    List<OrgRoleUserMid> findByRoleId(String roleId);
    List<OrgRoleUserMid> findByUserId(String userId);
    void deleteByUserId(String userId);
}
